package com.beimi.game.service;

import java.util.HashMap;
import java.util.Map;

import com.beimi.game.player.GamePlayer;

public class GamePlayerMgr {
	private Map<String, GamePlayer> map;
	
	public GamePlayerMgr()
	{
		map = new HashMap<>();
	}
	
	public GamePlayer getPlayer(String key)
	{
		return map.get(key);
	}
	
	public void addPlayer(String key, GamePlayer player)
	{
		map.put(key, player);
	}
}
